home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / flip.arc / FLIP.DOC < prev    next >
Text File  |  1988-06-21  |  5KB  |  115 lines

  1. FLIP.COM
  2.  
  3.           This assembly language routine allows the user to change 
  4.           various system settings as well as the state of various
  5.           "toggle" keys via a DOS command.
  6.  
  7.           Syntax:
  8.                  FLIP |Num   |    |ON    |
  9.                       |CAp   |    |OFf   |
  10.                       |Scroll|    |Toggle|
  11.                       |Insert|
  12.                  or
  13.                  FLIP |Mono | |80|
  14.                       |COlor| |40|
  15.  
  16.                  or
  17.                  FLIP Prtsc
  18.  
  19.                  or
  20.                  FLIP Logging  |ON    |
  21.                                |OFf   |
  22.                                |Toggle|
  23.                  or
  24.                  FLIP EJect
  25.  
  26.                  or
  27.                  FLIP EGa      |25|
  28.                                |43|
  29.  
  30.                  or
  31.                  FLIP LPTn     |PRTn|
  32.                                |LPTn|
  33.  
  34.                  or
  35.                  FLIP CLear
  36.  
  37.          In the above, all parameters can be abbreviated to
  38.          the uppercase portion of the parameter.
  39.  
  40.          NUM indicates to change the Num Lock state, SCROLL
  41.          indicates to change the Scroll Lock state, INSERT
  42.          indicates to change the Insert state and CAP indicates
  43.          to change the Caps Lock state.  ON indicates to turn the
  44.          respective states on; OFF, turn them off; and TOGGLE to
  45.          reverse them from their current settings.
  46.  
  47.          The MONO and COLOR parameters flip between the MONO and COLOR
  48.          display adapter cards on systems so equipped: 40 or 80 defines
  49.          the number of characters per line if the COLOR parameter is
  50.          used: 40 or 80 is not necessary (nor respected) for MONO.
  51.  
  52.          The PRTSC parameter has the same effect as pushing down the
  53.          shift-PrtSc keys (producing a screen dump).
  54.  
  55.          The LOGGING parameter has the same effect as pushing down the
  56.          ctrl-PrtSc keys, which turns logging on in DOS. LOGGING ON
  57.          will turn logging on (that is, text output that appears on
  58.          the display will also be printed) if logging is not already
  59.          active. LOGGING OFF will turn logging off if it is not already
  60.          off.  LOGGING TOGGLE will flip the current state.
  61.  
  62.          The EJECT parameter sends a form feed (decimal 12) to the
  63.          standard printer device.
  64.  
  65.          The EGA parameter sets the number of lines on the screen
  66.          on systems equipped with EGA adapters and displays.
  67.  
  68.          The LPT parameter changes the printer configuration.
  69.          For example, FLIP LPT1 PRT2 changes the printer configuration
  70.          such that commands that print on LPT1 will cause printing to
  71.          to take place on the printer physically connected to printer port 2.
  72.          Commands that print on LPT2 will also print on the printer physically
  73.          connected to port 2.  Executing the command FLIP LPT1 PRT1
  74.          again will restore the printers to their normal configuration.
  75.          When FLIP changes printer assignments, it resets the BIOS
  76.          printer timeout for that printer to the default (20).  Note
  77.          also that FLIP uses real hardware port address for assignment to
  78.          the LPTn selected consistent with BIOS assignments at system
  79.          initialization.   
  80.  
  81.          Using LPTn for the second parameter causes FLIP to change the
  82.          logical assignments.  Thus, FLIP LPT1 LPT2 causes the system
  83.          route all output directed to LPT1 to LPT2 and output directed to
  84.          LPT2 to LPT1.  Executing FLIP LPT1 LPT2 will reset this assignment.
  85.          This command sequence may be useful when other programs have already
  86.          supplied addresses, other than the standard BIOS addresses, to the
  87.          BIOS printer table.  FLIP maintains the printer timeout when
  88.          executed this way.  Be aware, however, that if multiple 
  89.          FLIP LPTn LPTn commands are issued, they must be reissued in the
  90.          reverse order they were originally issued if the prior printer
  91.          configuration is to be restored.  For example, if the commands:
  92.  
  93.          FLIP LPT1 LPT2
  94.          FLIP LPT2 LPT3
  95.          
  96.          were issued, (making output for LPT1 print on LPT3, output for
  97.          LPT2 print on LPT1, and output for LPT3 print on LPT2) the commands:
  98.  
  99.          FLIP LPT2 LPT3 
  100.          FLIP LPT1 LPT2
  101.           
  102.          would need to be issued, in that sequence, to restore the normal
  103.          assignments.
  104.  
  105.          FLIP CLEAR will simply clear the display.  Unlike the DOS CLS
  106.          command, it will maintain the current screen state (video 
  107.          attributes as well as the border).
  108.  
  109.          Copyright (c) 1982, 1984, 1987 Thomas J. Foth
  110.          Rights granted to distribute this routine with the inclusion of
  111.          this notice but not for profit.
  112.  
  113.          Author makes no warranty, expressed or implied, as to the
  114.          correct nature and operation of this software.
  115.